<template>
  <view>
    <button size="mini" type="warn" @click="login">login</button>
    <!-- <tabbar></tabbar> -->
    <u-button text="handeTestBackApi" @click="handeTestBackApi"></u-button>
    <u-button text="handleBackToHome" @click="handleBackToHome"></u-button>
    <!-- <PriceInfo></PriceInfo> -->
  </view>
</template>

<script setup>
// PriceInfo
import useUserStore from "@/store/user.js";
import { sendTestApi } from "../../utils/api/test";

// import PriceInfo from '../../components/pirce-info/PriceInfo.vue';

const useStore = useUserStore();
const login = () => {
  uni.navigateTo({
    url: "/pages/login/login",
  });
};
const handleBackToHome = () => {
  useStore.setActive(0);
  uni.switchTab({ url: "/pages/index/index" });
};
const handeTestBackApi = () => {
  sendTestApi();
};
</script>

<style></style>
